<i class="fa fa-bars" id="tocburger" onclick='$("#toc").toggle()'></i> 
<a class="item" data-title="{{ .LinkTitle }}" href="{{ .RelPermalink }}"></a>
{{ template "section-tree-nav" (dict "ctx" . "section" .) }}
{{ define "section-tree-nav" }}
	{{ $pages :=  (union .section.Pages .section.Sections) }}
	{{ with site.Params.language_alternatives }}
		{{ range . }}
			{{ with (where $.section.Translations ".Lang" . ) }}
			{{ $p := index . 0 }}
			{{ $pages =  $pages | lang.Merge (union $p.Pages $p.Sections) }}
			{{ end }}
		{{ end }}
	{{ end }}
	{{ $sections := where $pages.ByWeight ".Params.nosidetoc" "!=" true }}
	{{ range $sections }}
		{{ if .IsPage }}
			{{ template "section-tree-nav-page"  (dict "ctx" $.ctx "page" .) }}
		{{ else }}
			{{ template "section-tree-nav-section" (dict "ctx" $.ctx "section" .) }}
		{{ end }}
	{{ end }}
{{ end }}
{{ define "section-tree-nav-section" }}
<div class="item" data-title="{{ .section.LinkTitle }}">
	<div class="container">
		{{ if ge (len .section.Content) 10 }}
		<a class="item" data-title="{{ .section.LinkTitle }}" href="{{ .section.RelPermalink }}"></a>
		{{ end }}
		{{ template "section-tree-nav" . }}
	</div>
</div>
{{ end }}
{{ define "section-tree-nav-page" }}
<a class="item" data-title="{{ .page.LinkTitle }}" href="{{ .page.RelPermalink }}"></a>
{{ end }}
